package cn.wolfcode.web.fallback;


import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.web.feign.SeckillProductFeignApi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
public class SeckillProductFeignFallBack implements SeckillProductFeignApi {

    @Override
    public Result<List<SeckillProductVo>> queryByTimeForJob(Integer time) {
        System.out.println("我是降级出错啦");
        return null;
    }
}
